import Mock from 'mockjs'
import {data,throwResult,area} from './setting'
import store from '../vuex'
import {defaultPath} from '../api/index.js'

if(store.getters.getOnMockjs){
	Mock.mock(/default/,function(options) {
		return Mock.mock(data)
	})
	
	Mock.mock(/des/,function(options) {
		return Mock.mock(throwResult)
	})
}

Mock.mock(/getArea/,function(options) {
	return Mock.mock(area)
})
